/**
 * 作者: wgx
 * 日期: 2024-12-18 09:52:13
 * 备注: 任务类型配置表
 */
package com.motu.monstercity.server.game.commondata.maintask;

import io.vertx.core.json.JsonObject;

public class TaskTypeModel {
    protected int id; // id
    protected int taskType; // 任务类型,配置在MainTaskConstant
    protected int isResetNum; // 领取奖励后是否需要重置进度 (1-重置)

    public TaskTypeModel() {
    }

    public TaskTypeModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        taskType = obj.containsKey("task_type") ? obj.getInteger("task_type") : 0;
        isResetNum = obj.containsKey("is_reset_num") ? obj.getInteger("is_reset_num") : 0;
    }

    public int getId() {
        return id;
    }

    public int getTaskType() {
        return taskType;
    }

    public int getIsResetNum() {
        return isResetNum;
    }

}
